package io1;

public class ThrowDemo {
    public static void main(String[] args) {
        Student2 a=new Student2();
        try {
            a.setAge(66);
            System.out.println("年纪为" + a.getAge());
        }catch (RuntimeException e){
            System.out.println("解决问题");
        }
    }


}
